/*
*  Copyright 2019-2023 CY
*
*  Licensed under the Apache License, Version 2.0 (the "License");
*  you may not use this file except in compliance with the License.
*  You may obtain a copy of the License at
*
*  http://www.apache.org/licenses/LICENSE-2.0
*
*  Unless required by applicable law or agreed to in writing, software
*  distributed under the License is distributed on an "AS IS" BASIS,
*  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
*  See the License for the specific language governing permissions and
*  limitations under the License.
*/
package me.zhengjie.modules.ejweixin.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import lombok.Data;
import cn.hutool.core.bean.BeanUtil;
import io.swagger.annotations.ApiModelProperty;
import cn.hutool.core.bean.copier.CopyOptions;
import java.sql.Timestamp;
import java.math.BigDecimal;
import java.io.Serializable;
import java.util.List;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

/**
* @description /
* @author cy
* @date 2025-04-22
**/
@Data
@TableName("ng_construction_site_info")
public class NgConstructionSiteInfo implements Serializable {

    @TableId(value = "id" , type = IdType.AUTO)
    @ApiModelProperty(value = "id")
    private Integer id;

    @ApiModelProperty(value = "所属团队ID")
    private Integer teacherId;

    @ApiModelProperty(value = "工地示例图")
    private String tittleImgPath;

    @ApiModelProperty(value = "工地位置")
    private String constructionAddress;

    @ApiModelProperty(value = "施工类型")
    private String constructionType;

    @ApiModelProperty(value = "房间类型")
    private String roomType;

    @ApiModelProperty(value = "户型")
    private String houseType;

    @ApiModelProperty(value = "设计风格")
    private String designStyle;

    @ApiModelProperty(value = "所属区县")
    private String district;

    @ApiModelProperty(value = "浏览次数")
    private Integer numberViews;

    @ApiModelProperty(value = "方式  半包全包")
    private String way;

    @ApiModelProperty(value = "建筑面积")
    private String housingArea;

    @ApiModelProperty(value = "预算")
    private BigDecimal budget;

    @ApiModelProperty(value = "进度共计16个阶段")
    private Integer progress;

    @ApiModelProperty(value = "创建者")
    private String createBy;

    @ApiModelProperty(value = "更新者")
    private String updateBy;

    @ApiModelProperty(value = "创建日期")
    private Timestamp createTime;

    @ApiModelProperty(value = "更新时间")
    private Timestamp updateTime;

    @TableField(exist = false)
    private String isLike;

    @TableField(exist = false)
    private String isCollect;

    @TableField(exist = false)
    private String teacherName;

    @ApiModelProperty(value = "标题")
    private String tittle;

    @TableField(exist = false)
    private List<NgConstructionSiteImg> siteImg;

    @ApiModelProperty(value = "人气")
    private Integer popularity;

    public void copy(NgConstructionSiteInfo source){
        BeanUtil.copyProperties(source,this, CopyOptions.create().setIgnoreNullValue(true));
    }
}
